import requests
from bs4 import BeautifulSoup

url = "https://wandou.la/hot/movie"

ua = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36'}

rq = requests.get(url, headers = ua)

html = rq.content.decode('utf-8')

soup = BeautifulSoup(html, "lxml")

# print(soup.prettify()) # 打印网站内容

web_title = soup.title.string

print(web_title)
